package com.ruoyi.business.mapper;

import java.util.List;
import com.ruoyi.business.domain.OrderInfoDetail;
import org.apache.ibatis.annotations.Param;

/**
 * @author lxh
 */
public interface OrderInfoDetailMapper {

    /**
     * 批量新增订单详情
     *
     * @param orderInfoDetailList
     * @return 结果
     */
    int batchOrderInfoDetail(List<OrderInfoDetail> orderInfoDetailList);


    /**
     * 根据订单编号查询订单详情
     *
     * @param outerOrderNo
     * @return 结果
     */
    List<OrderInfoDetail> selectOrderInfoDetailByOuterOrderNo(String outerOrderNo);

    int updateOrderInfoDetailByOutitemIds(@Param("updateBy") String updateBy,
                                          @Param("outerOrderNos") List<String> outerOrderNos);

    int updateOrderInfoDetailByOutitemId(@Param("updateBy") String updateBy,
                                         @Param("outerOrderNo") String outerOrderNo);

    List<OrderInfoDetail> selectOrderInfoDetailList(OrderInfoDetail orderInfoDetail);

    List<OrderInfoDetail> selectBySkuBarCodes(List<String> skuBarCodes);
}